package com.hgl.bi.common.constant;

/**
 * @program: BI
 * @description: 业务常量
 * @author: hgl
 * @create: 2025-02-12 19:13
 */
public class BusinessConstant {

    /**
     * 邮箱正则表达式
     */
    public static final String EMAIL_REGEX = "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$";

    /**
     * 手机号正则表达式
     */
    public static final String PHONE_REGEX = "^1[3456789]\\d{9}$";

    /**
     * 默认密码
     */
    public static final String DEFAULT_PASSWORD = "123456";

    /**
     * 默认头像
     */
    public static final String DEFAULT_AVATAR = "/avatar/default_avatar.jpg";

    /**
     * 一小时有效期
     */
    public static final Long AN_HOUR = 1000 * 60 * 60L;

    /**
     * 一天有效期
     */
    public static final Long A_WEEK = 1000 * 60 * 60 * 24 * 7L;

    public static final Long ONE_DAY = 1000 * 60 * 60 * 24L;

}
